#ifndef TABLEWIDGET_H
#define TABLEWIDGET_H
#include <QtCore/QPoint>
#include <QtGui/QMenu>
#include <QtGui/QMouseEvent>
#include<QMessageBox>
#include<QTableWidget>
#include<QMenu>
#include<QAction>
#include<QStringList>
#include<QPoint>
#include"public.h"
#include<QTableWidgetItem>
class TableWidget:public QTableWidget
{
    Q_OBJECT
    public:
        TableWidget ( QWidget * parent = 0 );
        virtual ~TableWidget();
        void setTableType(int type);
        void setPopMenu( QMenu* menu);
    signals:
        void StopDownload(const QString& filename);
        void  ContinueDownload(const QString& filename);
        void OpenDownloadDir(const QString& filename);

    protected slots:
        virtual void mousePressEvent ( QMouseEvent *e );
        void SGetFileName(void);
        void CGetFileName(void);
        void GetPath(void);
private:
        QMenu*  PopMenu;
        QAction* Continue;
        QAction* Stop;
        QAction* OpenDir;
        int type;
        QPoint pos;
};
#endif // TABLEWIDGET_H
